package com.java.interview.i设计模式.模板模式.my;

/**
 * @Description:
 * @Auther: sixbing  QQ:414409451
 * @Date: 2018/11/4 11:25
 */
public abstract class CarBean {
    private double radius;
    private double turnRate;

    public abstract double getRadius();

    public double getTurnRate() {
        return turnRate;
    }

    public void setTurnRate(double turnRate) {
        this.turnRate = turnRate;
    }

    public double getSpeed() {
        return Math.PI * getRadius() * turnRate;
    }
}
